package com.action;

import com.vo.Person;

public class TestAction {

	private Person person;
	private String username;
	private String password;
	public String login(){
		System.out.println(username+"--------"+password);
		if("he".equals(person.getUsername())&& "123".equals(person.getPassword())){
			
			return "success";
		}else{
			
			return "fail";
		}
		
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Person getPerson() {
		return person;
	}

	public void setPerson(Person person) {
		this.person = person;
	}
	
}
